#apptype windows
#reference 'System.Windows.Forms.dll' 
#reference 'System.Drawing.dll'

uses system, system.windows.forms;

var
  MyForm: System.Windows.Forms.Form;
  Button1: system.windows.forms.button;

procedure InitControls;
begin
  myform:=system.windows.forms.form.create;
  Button1:=new Button;
  Button1.Left:=10;
  button1.Top:=10;
  myform.Controls.Add(button1);
end;

begin
  InitControls;
  application.Run(myform); 
 // sleep(1000);
end.